package com.flyduck.mall.oms.domain;

import com.flyduck.ss.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serial;

/**
 * 退货对象 oms_refund
 *
 * @author flyduck
 * @date 2025-01-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("oms_refund")
public class OmsRefund extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "id")
    private Long id;

    /**
     *
     */
    private Long userId;

    /**
     *
     */
    private Long orderId;

    /**
     *
     */
    private String orderSn;

    /**
     *
     */
    private String sn;

    /**
     *
     */
    private BigDecimal refundAmount;

    /**
     * 退货方式，0-自行寄回，1-上门取货
     */
    private String method;

    /**
     * 退款理由
     */
    private String reason;

    /**
     *
     */
    private String description;

    /**
     *
     */
    private String images;

    /**
     *
     */
    private Long operatorId;

    /**
     *
     */
    private String operateRemark;

    /**
     *
     */
    private Date operateTime;

    /**
     *
     */
    private String receiptRemark;

    /**
     * 申请状态：0->待处理；1->退货中；2->已完成；3->已拒绝
     */
    private Integer refundStatus;

    /**
     *
     */
    private Date refundTime;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @TableLogic
    private String delFlag;

    /**
     * 备注
     */
    private String remark;


}
